/**
 * 
 */
package com.marianhello.bgloc.data;

/**
 * @author clu
 *
 */
public class LocationPackage {
	private Long id = null; //Long.valueOf(-1);
	private Integer packageNum = 0;
	private String packagePayload = null;
	private long time = 0L;
	private boolean isValid = true;
	
	public LocationPackage() {
		super();
	}
	/**
	 * @param packageNum
	 * @param packagePayload
	 */
	public LocationPackage(String packagePayload, Integer packageNum) {
		super();
		this.packagePayload = packagePayload;
		this.packageNum = packageNum;
		this.time = System.currentTimeMillis();
	}
	/**
	 * @return the isValid
	 */
	public boolean isValid() {
		return isValid;
	}
	/**
	 * @param isValid the isValid to set
	 */
	public void setValid(boolean isValid) {
		this.isValid = isValid;
	}
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the packageNum
	 */
	public Integer getPackageNum() {
		return packageNum;
	}
	/**
	 * @param packageNum the packageNum to set
	 */
	public void setPackageNum(Integer packageNum) {
		this.packageNum = packageNum;
	}
	/**
	 * @return the packagePayload
	 */
	public String getPackagePayload() {
		return packagePayload;
	}
	/**
	 * @param packagePayload the packagePayload to set
	 */
	public void setPackagePayload(String packagePayload) {
		this.packagePayload = packagePayload;
	}
	/**
	 * @return the time
	 */
	public long getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(long time) {
		this.time = time;
	}

}
